class Plate<T> {
    private T message;
    public T getMessage() {
        return this.message;
    }
    public void setMessage(T message) {
        System.out.println(message);
    }
}
class Fruit extends Plate{

}
public class Test {
    public static void main(String[] args) {

    }
    public static void fun(Plate<? extends Fruit> temp) {
        System.out.println(temp.getMessage());
    }
}
